package com.sp.scmdb.bean;

public class WorkTimeBean extends PageBean {
	
	/** 工时ID */
	private String id;

	/** 工时类别：0 最小工时；1 最大工时 */
	private String type;

	/** 工时名称 */
	private String name;

	/** 工时的具体时长 */
	private String hourLen;

	/**  */
	private String total;

	/** 备注 */
	private String rmk;
	
	/**
	 * 工时ID取得
	 * @return 工时ID
	 */
	public String getId() {
		return id;
	}

	/**
	 * 工时ID设置
	 * @param id
	 */
	public void setId(String id) {
		this.id = id;
	}
	
	/**
	 * 工时名称取得
	 * @return 工时名称
	 */
	public String getName() {
		return name;
	}

	/**
	 * 工时名称设置
	 * @param name
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * 工时的具体时长取得
	 * @return 工时的具体时长
	 */
	public String getHourLen() {
		return hourLen;
	}

	/**
	 * 工时的具体时长设置
	 * @param hourLen
	 */
	public void setHourLen(String hourLen) {
		this.hourLen = hourLen;
	}

	public String getTotal() {
		return total;
	}

	public void setTotal(String total) {
		this.total = total;
	}

	/**
	 * 备注取得
	 * @return 备注
	 */
	public String getRmk() {
		return rmk;
	}

	/**
	 * 备注设置
	 * @param rmk
	 */
	public void setRmk(String rmk) {
		this.rmk = rmk;
	}

	/**
	 * 工时类别取得
	 * @return 工时类别 0:最小工时
	 * 					1:最大工时
	 */
	public String getType() {
		return type;
	}

	/**
	 * 工时类别设置
	 * @param type  0:最小工时
	 * 				1:最大工时
	 */
	public void setType(String type) {
		this.type = type;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((hourLen == null) ? 0 : hourLen.hashCode());
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		result = prime * result + ((rmk == null) ? 0 : rmk.hashCode());
		result = prime * result + ((total == null) ? 0 : total.hashCode());
		result = prime * result + ((type == null) ? 0 : type.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		WorkTimeBean other = (WorkTimeBean) obj;
		if (hourLen == null) {
			if (other.hourLen != null)
				return false;
		} else if (!hourLen.equals(other.hourLen))
			return false;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		if (rmk == null) {
			if (other.rmk != null)
				return false;
		} else if (!rmk.equals(other.rmk))
			return false;
		if (total == null) {
			if (other.total != null)
				return false;
		} else if (!total.equals(other.total))
			return false;
		if (type == null) {
			if (other.type != null)
				return false;
		} else if (!type.equals(other.type))
			return false;
		return true;
	}
}
